ÊQuickDraw GX GraphicsContentsFigures, Tables, and ListingsAbout This BookWhat to ReadChapter OrganizationConventions Used in This Book
Special FontsTypes of NotesNumerical Formats
Illustrations
Development EnvironmentDeveloper Products and Support%Introduction to QuickDraw GX GraphicsAbout QuickDraw GX Graphics!Figure 1-1 Shape object structure<Table 1-1 Where to find information on shape-type conversion
Geometric ShapesGeometric Shape TypesOFigure 1-2 The geometric shape types and examples of geometric shape geometriesGeometric Shape GeometriesZFigure 1-3 A polygon shape with a single polygon contour containing three geometric pointsGeometric Shape Fills/Figure 1-4 Framing shapes versus filling shapes&Geometric Styles, Inks, and Transforms1Figure 1-5 Two condensed views of a polygon shapeLFigure 1-6 The geometric style properties and some examples of their effectsGeometric OperationsOFigure 1-7 An example of eliminating unnecessary geometric points from a shape ,Figure 1-8 An example of simplifying a shapeMFigure 1-9 Some examples of the geometric information available about a shapeQFigure 1-10 Some examples of the geometric arithmetic you can perform with shapes
Bitmap Shapes Figure 1-11 Sample bitmap shapesFigure 1-12 A bitmap shape )Figure 1-13 Elements of a bitmap geometryPicture Shapes!Figure 1-14 Sample picture shapesFigure 1-15 A picture shapeFigure 1-16 A picture hierarchyGeometric ShapesAbout Geometric ShapesFigure 2-1 A shape object)The Geometric Properties of Shape Objects
Shape TypeOFigure 2-2 The geometric shape types and examples of geometric shape geometriesShape GeometryRFigure 2-3 A polygon shape with a single contour containing three geometric points
Shape Fill/Figure 2-4 Framing shapes versus filling shapesFFigure 2-5 The various shape fills and some examples of their effects ?Figure 2-6 The even-odd rule and winding-number rule algorithmsThe Geometric Shape TypesEmpty Shapes and Full ShapesPoint ShapesLine ShapesFigure 2-7 Two linesCurve Shapes#Figure 2-8 A quadratic Bézier curve*Figure 2-9 Finding the midpoint of a curve4Figure 2-10 Dividing a curve into two smaller curvesRectangle Shapes8Figure 2-11 A rectangle geometry shown framed and filledPolygon Shapes5Figure 2-12 A polygon shape with two polygon contoursEFigure 2-13 A polygon drawn with the even-odd and winding shape fills<Figure 2-14 A polygon filled with the inverseFill shape fillPath Shapes8Figure 2-15 A path with two consecutive off-curve pointsPFigure 2-16 A path shape filled with the evenOddFill and windingFill shape fillsUsing Geometric Shapes1Creating and Drawing Empty Shapes and Full ShapesCreating and Drawing Points :Listing 2-1 Drawing a point without creating a point shapeFigure 2-17 A point?Listing 2-2 Creating a point shape with the GXNewPoint functionEListing 2-3 Creating a point shape with the GXNewShapeVector functionOListing 2-4 Creating a point shape with the GXNewShape and GXSetPoint functionsMListing 2-5 Using the GXSetPoint function to replace a point shape’s geometry*Figure 2-18 Two different point geometriesCreating and Drawing Lines8Listing 2-6 Drawing a line without creating a line shapeFigure 2-19 A line=Listing 2-7 Creating a line shape with the GXNewLine function&Listing 2-8 Drawing two parallel linesFigure 2-20 Parallel lines!Figure 2-21 Nearly parallel linesCreating and Drawing Rectangles&Listing 2-9 Creating a rectangle shapeFigure 2-22 A rectangle(Listing 2-10 Creating a framed rectangleFigure 2-23 A framed rectangleCreating and Drawing Curves#Listing 2-11 Creating a curve shapeFigure 2-24 A curve shapeCreating and Drawing Polygons'Creating Polygons With a Single Contour)Listing 2-12 Drawing a triangular polygon Figure 2-25 A triangular polygon;Figure 2-26 A triangular polygon with an inverse shape fill(Creating Polygons With Mulitple Contours1Listing 2-13 Creating a polygon with two contours7Figure 2-27 A filled polygon with two separate contours'Creating Polygons With Crossed Contours6Listing 2-14 Creating a polygon with a crossed contour3Figure 2-28 A framed polygon with a crossed contour1Figure 2-29 A filled polygon with crossed contour;Listing 2-15 Creating a polygon with an overlapping contourTFigure 2-30 A framed polygon with an overlapping contour and closed-frame shape fillYFigure 2-31 A even-odd filled polygon with an overlapping contour and even-odd shape fillHFigure 2-32 A contour with an overlapping contour and winding shape fillCreating and Drawing Paths$Creating Paths With a Single Contour!Listing 2-16 Drawing a path shapeFigure 2-33 A path *Creating Paths Using Only Off-Curve Points@Listing 2-17 Creating a path using only off-curve control pointsFigure 2-34 A round path shape%Creating Paths With Multiple Contours5Listing 2-18 Creating a path with concentric contoursFFigure 2-35 A framed path shape with two concentric clockwise contoursPFigure 2-36 An even-odd filled path shape with two concentric clockwise contoursNFigure 2-37 A winding-filled path shape with two concentric clockwise contoursJFigure 2-38 A framed paths shape with an internal counterclockwise contourIFigure 2-39 A filled path shape with an internal counterclockwise contour2Converting Shapes to Points, Lines, and Rectangles/Listing 2-19 Creating a figure-eight path shape%Figure 2-40 A figure-eight path shapeFFigure 2-41 The result of converting a path shape to a rectangle shapeAFigure 2-42 The result of converting a path shape to a line shape3Figure 2-43 A path shape converted to a point shape!Converting Shapes to Curve Shapes)Listing 2-20 Converting a line to a curveEFigure 2-44 A line shape before and after conversion to a curve shape.Listing 2-21 Converting a rectangle to a curveJFigure 2-45 A rectangle shape before and after conversion to a curve shape8Listing 2-22 Converting a polygon shape to a curve shapeHFigure 2-46 A polygon shape before and after conversion to a curve shape'Converting Shapes to Polygons and Paths<Listing 2-23 Converting a rectangle shape to a polygon shapeLFigure 2-47 A rectangle shape before and after conversion to a polygon shape7Listing 2-24 Converting a path shape to a polygon shapeGFigure 2-48 A path shape before and after conversion to a polygon shape7Listing 2-25 Converting a polygon shape to a path shapeWFigure 2-49 Polygon shape with two contours before and after conversion to a path shapeReplacing Geometric Points(Listing 2-26 Replacing geometric points )Figure 2-50 A paths shape with a flat top8Figure 2-51 A paths shape with geometric points replacedEditing Polygon Parts7Listing 2-27 Creating a polygon shape with two contours-Figure 2-52 A polygon shape with two contours0Listing 2-28 Extracting part of a polygons shapeAFigure 2-53 A polygon shape extracted from a larger polygon shape;Listing 2-29 Replacing geometric points of a polygons shapeTFigure 2-54 A polygon with two geometric points replaced by a single geometric point)Figure 2-55 A closed-frame filled polygon&Listing 2-30 Creating a hollow polygonGFigure 2-56 A polygon shape edited with the gxBreakNeitherEdit flag setBFigure 2-57 A polygon shape edited with the breakLeftEdit flag setDFigure 2-58 A polygons shape edited with the breakRightEdit flag setEditing Paths Parts;Listing 2-31 Creating a path shape with two curved contours2Figure 2-59 A paths shape with two curved contours3Figure 2-60 A path shape edited with GXSetPathPartsEditing Shape Parts3Listing 2-32 Creating a path shape with one contour(Figure 2-61 A path shape with a flat top4Figure 2-62 A path shape edited to have a pointy top4Figure 2-63 A paths shape edited to have a round top%Listing 2-33 Creating a diagonal lineFigure 2-64 A diagonal lineFigure 2-65 An edited line;
Applying Functions Described Elsewhere to Geometric Shapes6Shape-Related Functions Applicable to Geometric ShapesVTable 2-1 Shape-related functions that exhibit special behavior with geometric shapess3Geometric Operations Applicable to Geometric Shapes6Style-Related Functions Applicable to Geometric Shapes4Ink-Related Functions Applicable to Geometric Shapes:Transform-Related Functions Applicable to Geometric ShapesGeometric Shapes Reference
Summary of Geometric ShapesGeometric StylesAbout Geometric StylesShapes and Styles>Figure 3-1 Style object with geometric properties highlighted Figure 3-2 Shared style objectsEFigure 3-3 A geometric shape and a typographic shape sharing a style 8Incorporating Stylistic Variations Into Shape Geometries3Figure 3-4 Effects of the GXPrimitiveShape function.Figure 3-5 Another example of primitive shapesStyle PropertiesDefault Style ObjectsCurve ErrorThe Geometric Pen)Figure 3-6 The QuickDraw GX geometric penFigure 3-7 Differing pen widths)Figure 3-8 Pixels included in a hairline 'Figure 3-9 A geometry with no hairline Style Attributes
Pen PlacementFigure 3-10 Pen placement4Figure 3-11 Effect of the auto-inset style attributeJFigure 3-12 Effect of the auto-inset style attribute for a crossed contour(Figure 3-13 Eliminating crossed contoursGrids(Figure 3-14 Constraining Shapes to Grids Caps, Joins, Dashes and Patterns-Figure 3-15 Caps, Joins, Dashes, and PatternsCaps Figure 3-16 A capped shapeFigure 3-17 Level caps!Figure 3-18 Standard cap shapesJoinsFigure 3-19 A joined shapeFigure 3-20 Level joinsFigure 3-21 Standard joins !Figure 3-22 Sharp join with miterDashes Figure 3-23 A dashed shape#Figure 3-24 Scaling a dash shape2Figure 3-25 Effect of the clip-dash dash attribute&Figure 3-26 Effects of breaking a dash%Figure 3-27 Effects of bending a dashPatternsFigure 3-28 A patterned shapeFigure 3-29 Pattern grids7Figure 3-30 Effects of the port-align pattern attribute5Figure 3-31 Effects of the port-map pattern attribute6Interactions Between Caps, Joins, Dashes, and Patterns1Figure 3-32 A shape with a cap, join, and pattern-Figure 3-33 A shape with a dash and a pattern:Figure 3-34 A shape with a clipped dash and a cap and joinUsing Geometric StylesAssociating Styles With ShapesLListing 3-1 Adding style information by directly manipulating a style object$Figure 3-35 Rectangle with thick pen5Listing 3-2 Manipulating style information indirectly&Constraining Shape Geometries to Grids4Listing 3-3 Constraining a shape to a half-inch grid0Figure 3-36 Scaled, but not constrained, V shapeFigure 3-37 Constrained V shape#Constraining Shapes to Device GridsFListing 3-4 Creating a shape with fractional geometric point positionsOFigure 3-38 Rotated star not constrained to device grid (magnified 200 percent)KFigure 3-39 Rotated star constrained to device grid (magnified 200 percent)Converting Paths to Polygons,Listing 3-5 Converting a circle to a polygon6Figure 3-40 Accurate polygon approximation of a circle;Figure 3-41 Less accurate polygon approximation of a circle?Figure 3-42 Highly inaccurate polygon approximation of a circle5Figure 3-43 Polygon resulting from a curve error of 0&Using Curve Error When Reducing Shapes*Listing 3-6 Creating a complicated contourFigure 3-44 Wavy line<Figure 3-45 Wavy line somewhat smoothed by curve error of 103Figure 3-46 Wavy line smoothed by curve error of 15BFigure 3-47 Wavy line completely straightened by curve error of 20$Manipulating Pen Width and Placement#Listing 3-7 Defining a figure eight#Figure 3-48 A hairline figure eight Figure 3-49 A thick figure eight-Figure 3-50 A figure eight with the pen inset+Figure 3-51 A figure eight with path outset4Figure 3-52 A reversed figure eight with path outset/Listing 3-8 Removing unwanted contour crossings2Figure 3-53 Uncrossed figure eight with pen outsetAdding Caps to a ShapeListing 3-9 Creating an arrowFigure 3-54 An arrowAdding Standard Caps to a Shape.Listing 3-10 Adding round caps and square caps!Figure 3-55 Round and square capsAdding Joins to a Shape$Listing 3-11 Adding joins to a shape.Figure 3-56 A square with diamond-shaped joinsFigure 3-57 Level joins Adding Standard Joins to a Shape2Listing 3-12 Adding a sharp join to an angle shapeFigure 3-58 Very sharp join"Figure 3-59 A truncated sharp joinDashing a Shape8Listing 3-13 Creating a curve shape dashed with diamondsFigure 3-60 Dashed curveFigure 3-61 Scaled dashesFigure 3-62 Clipped dashesFigure 3-63 Phased dashes Adjusting Dashes to Fit Contours%Listing 3-14 Creating a dashes circle'Figure 3-64 Circle dashed with diamonds)Figure 3-65 Automatically advanced dashesInsetting Dashes,Figure 3-66 Circle with diamond dashes inset>Figure 3-67 Circle with diamond dashes moved toward the centerBreaking and Bending Dashes(Figure 3-68 Dash shape with two contours3Listing 3-15 Creating a dash with multiple contours.Figure 3-69 Circle dashed with double diamonds%Figure 3-70 Circle with dashes broken&Figure 3-71 Circle with airline dashes,Figure 3-72 Circle with bent hairline dashes
Wrapping TextListing 3-16 Wrapping textFigure 3-73 Wrapped textDetermining Dash Positions-Listing 3-17 Creating a circle with 12 dashes&Figure 3-74 Dash positions for a clock#Listing 3-18 Creating a clock shapeFigure 3-75 A clock shapeAdding a Pattern to a ShapeListing 3-19 Patterning a shape!Figure 3-76 A patterned rectangle%Figure 3-77 Patterning a framed shapeDetermining Pattern Positions<Listing 3-20 Changing a pattern throughout a patterned shape'Figure 3-78 Shape with changing pattern+Combining Caps, Joins, Dashes, and Patterns/Listing 3-21 Combining a cap, join, and pattern3Figure 3-79 Angle shape with cap, join, and pattern>Figure 3-80 Shape with dash and pattern; caps and join ignoredMFigure 3-81 Shape with cap, join, dash, and the gxClipDash dash attribute setGeometric Styles ReferenceConstants and Data Types
Style ObjectsStyle AttributesCap Record StructureCap AttributesJoin Record StructureJoin AttributesDash Record StructureDash AttributesPattern Record StructurePattern Attributes Functions$Getting and Setting Style AttributesGXGetStyleAttributesGXSetStyleAttributesGXGetShapeStyleAttributesGXSetShapeStyleAttributesGetting and Setting Curve ErrorGXGetStyleCurveError GXSetStyleCurveError GXGetShapeCurveError GXSetShapeCurveError !Getting and Setting the Pen WidthGXGetStylePen GXSetStylePen GXGetShapePen GXSetShapePen +Getting and Setting Start Caps and End CapsGXGetStyleCap GXSetStyleCap GXGetShapeCap GXSetShapeCap Getting and Setting JoinsGXGetStyleJoin GXSetStyleJoin GXGetShapeJoin GXSetShapeJoin Getting and Setting DashesGXGetStyleDash GXSetStyleDash GXGetShapeDash GXSetShapeDash GXGetShapeDashPositions Getting and Setting PatternsGXGetStylePattern GXSetStylePattern GXGetShapePattern GXSetShapePattern GXGetShapePatternPositions
Summary of Geometric StylesGeometric OperationsAbout Geometric OperationsContours and Contour DirectionFigure 4-1 Line contours)Figure 4-2 A path shape with two contours)Figure 4-3 A path shape with two contoursDFigure 4-4 A path whose contour direction is not immediately obviousYFigure 4-5 A path whose inner contour has the same contour direction as its outer contourXFigure 4-6 A path shape whose inner and outer contours have different contour direction )Reducing and Simplifying Shape Geometries?Figure 4-7 Effects of reducing and simplifying shape geometriesTFigure 4-8 How simplifying a shape can produce more predictable results when drawing&The Primitive Form of Shape Geometries:Figure 4-9 Simple example of the GXPrimitiveShape functionBFigure 4-10 More involved example of the GXPrimitiveShape functionGeometric Information>Figure 4-11 Geometric information available about a path shapeCFigure 4-12 A path shape resized by changing its bounding rectangleIntersection and Inclusion+Figure 4-13 Testing shapes for intersection6Figure 4-14 Testing whether one shape contains anotherGeometric Arithmetic7Figure 4-15 Geometric arithmetic with two filled shapesGFigure 4-16 Geometric arithmetic with a framed shape and a filled shapeFigure 4-17 Geometric inversion
Using Geometric Operations+Determining and Reversing Contour DirectionYListing 4-1 Creating a polygon shape with two contours having opposite contour directionsPFigure 4-18 A polygon shape whose two contours have opposite contour directionsrHFigure 4-19 A polygon shape with the direction of both contours reversedLFigure 4-20 A polygon shape with the direction of the inner contour reversedBreaking Shape Contours7Listing 4-2 Creating a path shape with a single contour.Figure 4-21 A path shape with a single contour1Figure 4-22 A path shape broken into two contours(Eliminating Unnecessary Geometric Points>Listing 4-3 Creating a polygon with redundant geometric points=Figure 4-23 A polygon shape with unnecessary geometric pointsHFigure 4-24 A poygon shape with the unnecessary geometric points removedSimplifying Shapes;Listing 4-4 Creating a polygon shape with a crossed contour2Figure 4-25 A polygon shape with a crossed contour4Figure 4-26 A polygon shape with no crossed contours7Listing 4-5 Creating a path with two clockwise contours?Figure 4-27 A path shape with two concentric clockwise contoursUFigure 4-28 A path shape with two concentric contours with opposite contour direction]Figure 4-29 A path shape with two concentric clockwise contours drawn with winding shape fillAFigure 4-30 A path shape simplified to a single clockwise contour$Converting a Shape to Primitive FormFListing 4-6 Creating an hourglass polygon shape with a thick pen width:Figure 4-31 A hourglass-shaped polygon with a thick borderQFigure 4-32 A polygon shape with style information incorporated into its geometryHFigure 4-33 The primitive form of the polygon shape after simplification+Finding Geometric Information About a ShapeUListing 4-7 Creating a pathshape with two contours having opposite contour directionsXFigure 4-34 A path with an outer clockwise contour and an inner counterclockwise contour/Figure 4-35 A specified point on a path contourHFigure 4-36 Finding the bounding rectangle and the centerpoint of a path4Figure 4-37 Finding the center point of two contours'Figure 4-38 Finding the area of a shape<Figure 4-39 The sum of all the contour areas of a path shapeFigure 4-40 A simplified path$Setting a Shape’s Bounding Rectangle$Listing 4-8 Creating a circular pathFigure 4-41 A circular path#Figure 4-42 A smaller circular path1Figure 4-43 A path shape with a transform mappingInsetting Shapes(Listing 4-9 Creating a tight curve shapeFigure 4-44 A tight curve:Figure 4-45 An inset curve shape with 16 geometric pointsFigure 4-46 An outset curve$Determining Whether Two Shapes Touch;Listing 4-10 Creating a rectangle and a circular path shape2Figure 4-47 A rectangle containing a circular path:Figure 4-48 A rectangle that touches a circular path shapeFFigure 4-49 A rectangle and a circular path touching at a single pointNFigure 4-50 A large circular path shape touching a smaller circular path shape.Determining Whether One Shape Contains AnotherHListing 4-11 Creating a donut-shaped path and a smaller, concentric pathSFigure 4-51 A path shape with two contours and a smaller concentric rectangle shape+Performing Geometric Arithmetic With ShapesRListing 4-12 Creating a diamond-shaped polygon and a circlular path that intersectJFigure 4-52 A diamond-shaped polygon geometry and a circular path geometryLFigure 4-53 The intersection of a diamond-shaped polygon and a circular pathEFigure 4-54 The union of a diamond-shaped polygon and a circular pathLFigure 4-55 The union of a framed diamond-shaped polygon and a circular pathSFigure 4-56 The result of subtracting a circular path from a diamond-shaped polygonSFigure 4-57 The result of subtracting a diamond-shaped polygon from a circular pathLFigure 4-58 The result of the exclusive-or operation on a polygon and a path Figure 4-59 An inverted diamond
Geometric Operations ReferenceConstants and Data TypesContour Directions Functions+Determining and Reversing Contour DirectionGXGetShapeDirection GXReverseShape Breaking Shape ContoursGXBreakShape Reducing and Simplifying ShapesGXReduceShape GXSimplifyShape 5Incorporating Style Information Into Shape GeometriesGXPrimitiveShape *Finding Geometric Information About ShapesGXGetShapeLength GXShapeLengthToPoint GXGetShapeCenter GXGetShapeArea Getting and Setting Shape BoundsGXGetShapeBounds GXSetShapeBounds Insetting ShapesGXInsetShape 'Determining Whether Two Areas IntersectGXTouchesRectanglePoint GXTouchesBoundsShape GXTouchesShape .Determining Whether One Shape Contains AnotherGXContainsRectangle GXContainsBoundsShape GXContainsShape +Performing Geometric Arithmetic with ShapesGXIntersectRectangle GXUnionRectangle GXIntersectShape GXUnionShape GXDifferenceShape GXReverseDifferenceShape GXExcludeShape GXInvertShape
Summary of Geometric Operations
Bitmap ShapesAbout Bitmap ShapesFigure 5-1 A bitmap shapeBitmap Geometries,Figure 5-2 A black-and-white bitmap geometry&Figure 5-3 A grayscale bitmap geometryBitmap Styles and Inks8Figure 5-4 The effect of transfer modes on bitmap shapesBitmap Transforms2Figure 5-5 The effect of mappings on bitmap shapesTFigure 5-6 The effect of the gxMapTransformShape shape attribute on bitmap mappings Bitmaps and View Devices#Figure 5-7 Bitmaps and view devices
Using Bitmap ShapesCreating and Drawing Bitmaps Creating Black-and-White Bitmaps-Listing 5-1 Creating a black-and-white bitmap0Figure 5-8 A black-and-white bitmap—32 bits wide0Figure 5-9 An example of unaligned bytes per row<Listing 5-2 A bit image with an even number of bytes per row%Figure 5-10 An envelope with a shadowCreating Color Bitmaps>Figure 5-11 A thinner envelope bitmap with four shades of grey0Figure 5-12 A bitmap with sixteen shades of gray Listing 5-3 Defining a color set&Figure 5-13 A bitmap with eight colors!Listing 5-4 Creating a color ramp*Figure 5-14 A color ramp from red to green8Listing 5-5 Creating a color ramp using the ramp libraryIListing 5-6 Creating a color ramp using both the ramp and color libraries Dithering and Halftoning BitmapsFigure 5-15 Dithered bitmapsListing 5-7 Halftoning a bitmapFigure 5-16 Halftoned bitmaps"Applying Transfer Modes to Bitmaps0Listing 5-8 Applying a transfer mode to a bitmap Figure 5-17 A blended color ramp+Converting Other Types of Shapes to Bitmaps)Listing 5-9 Converting a path to a bitmap3Figure 5-18 A bitmap representation of a path shape/Figure 5-19 A bitmap and its bounding rectangle,Figure 5-20 A bitmap drawn over a backgroundAFigure 5-21 A bitmap with a transfer mode drawn over a background#Applying Transformations to Bitmaps6Figure 5-22 A path shape converted to a bitmap shape DFigure 5-23 A path shape converted to a bitmap shape and then skewedFigure 5-24 A color ramp bitmap3Figure 5-25 A bitmap after multiple transformationsListing 5-10 Scaling textFigure 5-26 Scaled textListing 5-11 Scaling a bitmap+Figure 5-27 Scaled text and a scaled bitmapFigure 5-28 A clipped bitmap-Creating Bitmaps With Disk-Based Pixel ImagesCreating Bitmaps OffscreenLListing 5-12 Creating a black-and-white bitmap that uses QuickDraw GX memory)Listing 5-13 Creating an offscreen bitmap-Figure 5-29 Multiple shapes drawn to a bitmapEListing 5-14 Creating an offscreen bitmap using the offscreen libraryEditing Parts of a BitmapFigure 5-30 An extracted bitmapFigure 5-31 An editied bitmap 8
Applying Functions Described Elsewhere to Bitmap ShapesDFunctions That Post Errors or Warnings When Applied to Bitmap ShapesYTable 5-1 Geometry-related functions that post errors or warnings when applied to bitmapsSTable 5-2 Geometric operations that post errors or warnings when applied to bitmaps3Shape-Related Functions Applicable to Bitmap ShapesWTable 5-3 Shape-related functions that exhibit special behavior when applied to bitmaps0Geometric Operations Applicable to Bitmap ShapesTTable 5-4 Geometric operations that exhibit special behavior when applied to bitmaps3Style-Related Functions Applicable to Bitmap ShapesCInk-Related and Color-Related Functions Applicable to Bitmap Shapes7Transform-Related Functions Applicable to Bitmap Shapes[Table 5-5 Transform-related functions that exhibit special behavior when applied to bitmaps;View-Related Functions That Can Be Applied to Bitmap Shapes?Table 5-6 View-related functions that can be applied to bitmaps
Bitmap Shapes Reference
Data TypesThe Bitmap Geometry StructureThe Long Rectangle Structure2Constants For Bitmaps With Disk-Based Pixel Images#Bitmap Data Source Alias Structure FunctionsCreating Bitmaps
GXNewBitmap %Getting and Setting Bitmap Geometries
Summary of Bitmap ShapesPicture ShapesAbout Picture ShapesFigure 6-1 A picture shapeFigure 6-2 A picture item,Figure 6-3 A picture geometry with two items+Figure 6-4 Condensed picture with two items'Overriding Styles, Inks, and Transforms)Figure 6-5 A picture shape with overridesMultiple ReferencesEFigure 6-6 A picture containing multiple references to the same shapeFigure 6-7 A picture item9Figure 6-8 Multiple references with overriding transformsLFigure 6-9 Multitple references with overriding styles, inks, and transformsUnique Items AttributeIFigure 6-10 Adding shapes to a picture without the unique items attributeFFigure 6-11 Adding shapes to a picture with the unique items attributePicture Hierarchies3Figure 6-12 A condensed view of a picture hierarchyTransform Concatenation*Figure 6-13 A path shape and its transform2Figure 6-14 A picture with an overriding transform*Figure 6-15 Simple transform concatenation-Figure 6-16 Intricate transform concatenationHit-Testing Picture Shapes-Figure 6-17 A picture shape and its transform
Using Picture Shapes#Creating and Drawing Picture Shapes0Listing 6-1 Creating a simple picture of a house7Figure 6-18 A picture of a house with a roof and a doorVListing 6-2 Disposing of shapes contained in a picture before disposing of the picture&Getting and Setting Picture Geometries7Listing 6-3 Extracting and editing items from a picture6Figure 6-19 A picture of a house with a relocated doorAdding Items to a Picture5Listing 6-4 Defining new shapes for the house picture2Listing 6-5 Adding new shapes to the house picture5Figure 6-20 A house with a lawn, walkway, and chimney)Removing and Replacing Items in a Picture+Listing 6-6 Removing an item from a picture)Figure 6-21 A house with chimney removed ,Listing 6-7 Replacing one shape with another-Figure 6-22 A house with the chimney replaced'Overriding Styles, Inks, and Transforms7Listing 6-8 Creating style, ink, and transform objectsWListing 6-9 Creating a picture whose items have overriding styles, inks, and transformsUListing 6-10 Disposing of overriding style, ink, and transform objects before drawingHFigure 6-23 A house picture with an overriding style, ink, and transformAdding Multiple References OListing 6-11 Adding four items to a house picture that reference the same shape\Listing 6-12 Disposing of the white rectangle and the three transform objects before drawing%Figure 6-24 A house with four windowsAdding Unique Items.Listing 6-13 Adding unique items to a picture KFigure 6-25 A house with four windows and four unique overriding transformsCreating Picture Hierarchies*Listing 6-14 Creating a picture hierarchy3Figure 6-26 A house rotated by 90 degrees two timesHit-Testing Pictures)Listing 6-15 Creating a picture hierarchyFigure 6-27 Grounds pictureFigure 6-28 House picture@Figure 6-29 Picture containing grounds picture and house picture(Listing 6-16 Hit-testing a picture shape8Figure 6-30 Hit-testing the picture of house and grounds>Table 6-1 Hit-testing a picture at different levels and depths9
Applying Functions Described Elsewhere to Picture Shapes&Functions That Post Errors or WarningsTTable 6-2 Geometric operations that post errors or warnings when applied to picturesShape-Related Functions XTable 6-3 Shape-related functions that exhibit special behavior when applied to picturesGeometric OperationsUTable 6-4 Geometric operations that exhibit special behavior when applied to picturesStyle-Related Functions Ink- and Color-Related Functions&Transform- and View-Related Functions